import request from '@/axios'
import type { CurdData } from './types'

export const getGoodsEnumApi = (params?: any) => {
  return request.get({ url: '/admin/supplier/product/price/resource', params })
}

export const getEchartsApi = (params?: any) => {
  return request.get({ url: '/admin/supplier/product/price/trend', params })
}

export const getListApi = (params?: any) => {
  return request.get({ url: '/admin/supplier/product/price', params })
}

// 价格趋势列表
export const getPriceTrendApi = (params?: any) => {
  return request.get({ url: '/admin/supplier/product/price/trendList', params })
}
